home *** CD-ROM | disk | FTP | other *** search
/ Master Levels for Doom 2 / Master Levels For Doom II.iso / maximum / wads / doom2 / making.txt < prev    next >
Encoding:
Text File  |  1995-04-12  |  5.0 KB  |  190 lines

  1.  
  2.  
  3.         DeuTex/DeuSf compilation
  4.  
  5.         by Olivier Montanuy
  6.         montanuy@dmi.ens.fr
  7.  
  8.  
  9.  
  10.         ****************************
  11.         * Structure of the sources *
  12.         ****************************
  13.  
  14. DeuTex, DeuSF share the same sources.
  15. When compiling, you must include all sources and define one of
  16. those flags so that the C pre-processor knows which part to select:
  17.  
  18. - DeuSF                   to compile DeuSF
  19. - DeuTex                  to compile DeuTex
  20. For a windows DLL
  21. - LDeuTex                 to compile DeuTex.DLL for Windoze
  22.  
  23.  
  24.  
  25.  
  26.         **************************
  27.         * Processor architecture *
  28.         **************************
  29.  
  30. if your processor is a MC68040, a Sparc, or any little endian
  31. processor, you must define the flag:
  32. - LITTLE_ENDIAN
  33. This flag must not be set if your processor is little endian.
  34. DeuTex/DeuSF will refuse to run if compiled incorrectly.
  35.  
  36.  
  37.         ***************
  38.         *  Dumb O/S   *
  39.         ***************
  40.          by Olivier Montanuy
  41.  
  42. DeuTex.bat and DeuSF.bat are used on my system to
  43. compile as a plain DOS executable.
  44. Edit the library flag -Lxxx  and the include flag -Ixxx
  45.  
  46.  
  47.         ***************
  48.         * Windoze 3.1 *
  49.         ***************
  50.          by Olivier Montanuy
  51.  
  52.  
  53. .EXE
  54. To let Windoze treat its events, as it is a great multi-tasking
  55. environement, some windoze() calls are made in the main loops.
  56. for the moment windoze()=kbhit()
  57. This version is useless. Yes, real useless. incredible!
  58.  
  59. Use the DOS deutex version under windows, with a suitable deutex.pif
  60.  
  61. .DLL
  62. DeuTex itself can't be compiled as a 16-bit windoze DLL (too big).
  63. the lbdeutex is for the visual basic shell.
  64.  
  65.  
  66.         *****************************
  67.         * DOS port by Mark Mathews *
  68.         *****************************
  69.           mark.mathews@channel1.com
  70.          mmathews@genesis.nred.ma.us
  71.  
  72. MSDOS 5.0+
  73. Borland C++ 3.1 users
  74. To make DEUTEXD.EXE use DEUTEXD.PRJ
  75. or make -fdeutexd.mak
  76. To make DEUSFD.EXE  use DEUSFD.PRJ
  77. or make -fdeusfd.mak
  78.  
  79.         ****************
  80.         * Unix SUN O/S *
  81.         ****************
  82.          by Olivier Montanuy
  83.  
  84. Unix: Sun Sparc 1, 10, 20, IPX
  85. gcc:        2.5.8
  86. The makefile provided for Unix and Linux does not compile .o
  87. objects. it compiles .ot for DeuTex and .os for DeuSF.
  88. That little trick is useful to avoid linker problems.
  89. take care that for SUN the FLAG line must contain -DLITTLE_ENDIAN
  90.  
  91.  
  92.         ********************
  93.         * Silicon Graphics *
  94.         ********************
  95.          by Chuck Rossi
  96. Make sure the flag LITTLE_ENDIAN is set, like on SUN.
  97.  
  98.  
  99.         **********************
  100.         * Linux i486/Pentium *
  101.         **********************
  102.            by Per Allanson
  103.           c91peral@und.ida.liu.se
  104.  
  105. Linux:   kernel 1.1.52  libc 4.5.26
  106. gcc:     2.5.8
  107. Make sure that the flag -DLITTLE_ENDIAN is not set.
  108.  
  109.  
  110.         *************
  111.         * DOS DJGPP *
  112.         *************
  113.         by mark.mathews@channel1.com
  114.  
  115.  
  116. To make DEUTEXG.EXE and DEUSFG.EXE
  117.  
  118. make -f makefile.dj all
  119. make -f makefile.dj strip
  120. make -f makefile.dj clean
  121.  
  122. DJGPP version uses a DOS extender (go32.exe) which is link with
  123. DEUTEXG.EXE and DEUSFG.EXE. This means you don't need a copy
  124. of go32.exe.
  125.  
  126.  
  127.  
  128.  
  129.         **************
  130.         * OS/2 2 2.1 *
  131.         **************
  132.         by mark.mathews@channel1.com
  133.  
  134. IBM C Set++ 2.1 users
  135.  
  136. For DEUTEXOS.EXE you need deutexos.mak and deutexos.def
  137. To make DEUTEXOS.EXE type:  nmake -f deutexos.mak
  138.  
  139.  
  140. For DEUSFOS.EXE you need deusfos.mak and deusfos.def
  141. To make DEUSFOS.EXE type :  nmake -f deusfos.mak
  142.  
  143.  
  144.  
  145.         ******************************
  146.         * DEC Alpha 64 bit processor *
  147.         ******************************
  148.         by James Bonfield
  149.         jkb@mrc-molecular-biology.cambridge.ac.uk
  150.  
  151. Make sure there is no flag -DLITTLE_ENDIAN. Alpha is BIG_ENDIAN.
  152.  
  153.  
  154. Then run the shell script alpha.sh to convert the DeuTex source to work on
  155. the Alpha. This simply replaces longs with int4 and typedefs int4 to be int
  156. (on the alpha long is 64 bits rather than 32). The produced code is written
  157. to an 'alpha' directory (created by alpha.sh). Change to this directory and
  158. then Make as per normal.
  159.  
  160. DeuTex will refuse to run if you get this wrong.
  161.  
  162.         ************************
  163.         * Porting DeuTex/DeuSF *
  164.         ************************
  165.  
  166. The source makes the following assumptions:
  167.  
  168. __DOS__         if under DOS
  169. __GNUC__        if under DOS extender GO32/DJGPP
  170. __OS2__         if OS/2
  171.  else           implicitly Unix/Linux
  172.  
  173.  
  174. char          is a 8 bit integer (signed/unsigned)
  175. int16         is a 16 bit integer
  176. int32         is a 32 bit integer
  177. int           is at least a 16 bit integer
  178.  DeuTex/DeuSF will not run if it detects size of short
  179.  or long is incorrect.
  180.  
  181.  
  182. Some structures related to pictures or to DOOM
  183. assumes that no word or long word alignement occur.
  184. if the entries are not put contiguously, DeuTex/DeuSF will
  185. not work, but there will be no warning.
  186.  
  187. Most of the O/S related functions are in tools.c.
  188.  
  189.  
  190.